package com.botann.projects.filter;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Charging
 * AllInterceptor
 * Created by 刘山国 on 2018/11/21.
 * Copyright (c) 2017 伯坦科技. All rights reserved
 */
public class AllInterceptor extends BaseInterceptor {
    @Override
    public Class loggerClass() {
        return AllInterceptor.class;
    }

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        String uri = request.getRequestURI();
        String url = uri == null ? "" : uri;
        logger.info("请求访问->> ");
        logger.info(url);
        logger.info("请求参数->> ");
        logger.info(getRequestParamsStr(request));
        return super.preHandle(request, response, handler);
    }
}
